package com.kd.dao.jobSeeker;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.kd.bean.jobSeeker.Deliver_resume;

/**
 * 求职者相关的类
 * --投递简历表（IDeliver_resumeDao）--
 * @author ZFC
 *
 */
public interface IDeliver_resumeDao {
	
	/**
	 * 招聘者
	 * 查询简历 通过招聘者的id
	 * 并且面试状态《dr_state>1》
	 * @param recruiter_id
	 * @return
	 * @throws Exception
	 */
	public List<Deliver_resume> queryAllDeliverMessageByRecruiter_id(Integer recruiter_id) throws Exception;
	
	/**
	 * 修改求职者的面试申请状态
	 * 
	 * 1、简历申请未通过
	 * 2、简历申请通过<发送面试邀请>
	 * @return
	 * @throws Exception
	 */
	public int updateDeliveDr_state(@Param("dr_id")Integer dr_id,
			@Param("dr_state")Integer dr_state) throws Exception;
	
	/**
	 * 删除投递简历
	 * 删除状态
	 * 1、未删除
	 * 2、已删除
	 * @param dr_id
	 * @param dr_delete_state
	 * @return
	 * @throws Exception
	 */
	public int updateDr_delete_state(@Param("dr_id")Integer dr_id,
			@Param("dr_delete_state")Integer dr_delete_state) throws Exception;
	
	/**
	 * 通过投递简历id 查询投递的简历
	 * @param rec_news_id
	 * @return
	 * @throws Exception
	 */
	public Deliver_resume queryByRr_id(Integer dr_id) throws Exception;
	
	/**
	 * 一键投递简历
	 * @param deliver
	 * @return
	 * @throws Exception
	 */
	public Integer insertDeliver_resume(@Param("deliver")List<Deliver_resume> deliver) throws Exception;
	
	/**
	 * 投递简历  应聘者
	 * 投递一个
	 * @param deliver_resume
	 * @return
	 * @throws Exception
	 */
	public int insertDeliver_resumeOne(Deliver_resume deliver_resume) throws Exception;
	
	/**
	 * 查询投递简历 通过投递人的文档id
	 * @param doc_id
	 * @return
	 */
	public List<Deliver_resume> queryDeliver_resumeByDoc_id(@Param("doc_id")Integer[] doc_id) throws Exception;
	
	/**
	 * 同意面试
	 * @param dr_download_state
	 * @param dr_id
	 * @return
	 * @throws Exception
	 */
	public int updateDr_download_state(@Param("dr_download_state")Integer dr_download_state,
			@Param("dr_id")Integer dr_id) throws Exception;
}
